<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<button-counter></button-counter>
			<button-counter></button-counter>
			<button-counter></button-counter>
		</div>
		<script type="text/javascript">
			const vm = new Vue({
				el: '#app',
				data: {
					counter: 0
				},
				components: {
					'button-counter': {
						template: '<button @click="counter++">++{{counter}}</button>',
						data: function() {
							return {
								counter: 0
							}
						}
					}
				}
			})
		</script>
	</body>
</html>
